package com.gooluke.spring;

import com.gooluke.spring.bean.User;
import com.gooluke.spring.controller.HelloController;

/**
 * @author gooluke
 * description
 * datetime 2025-04-07 23:05
 */
public class Main {

    public static void main(String[] args) throws Exception {
        ApplicationContext applicationContext = new ApplicationContext("com.gooluke.spring");
        HelloController controller = applicationContext.getBean(HelloController.class);
        User user = applicationContext.getBean(User.class);
        System.out.println("user.getName() = " + user.getName());
        boolean test = user.isTest();
        System.out.println("test = " + test);
        float rate = user.getRate();
        double money = user.getMoney();
        long port = user.getPort();
        System.out.println("rate = " + rate);
        System.out.println("money = " + money);
        System.out.println("port = " + port);
    }

}
